package com.xbongbong.pro.statistic.manager.feign;

import com.xbongbong.paas.pojo.dto.IsActiveAliyunCallDTO;
import com.xbongbong.paas.pojo.vo.IsActiveAliyunCallVO;
import com.xbongbong.paas.toolbox.wrap.XbbResponse;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

import javax.validation.Valid;

@FeignClient(name = "pro-callcenter-web")
public interface AliyuncallCenterFeignClient {
    @RequestMapping(value = "/pro/v1/aliyunCallCenter/admin/isActiveAliyunCall", method = RequestMethod.POST, produces = MediaType.APPLICATION_JSON_UTF8_VALUE)
    public XbbResponse<IsActiveAliyunCallVO> isActiveAliyunCall(@RequestBody @Valid IsActiveAliyunCallDTO isActiveAliyunCallDTO, @RequestParam("lang") String lang) ;
}
